package com.xuan.friend.domain.contest;

import com.baomidou.mybatisplus.annotation.*;
import com.xuan.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 竞赛表
 * @TableName tb_contest
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value ="tb_contest")
@Data
public class Contest extends BaseEntity implements Serializable {
    /**
     * 竞赛 id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long contestId;

    /**
     * 竞赛名称
     */
    private String title;

    /**
     * 竞赛开始时间
     */
    private LocalDateTime startTime;

    /**
     * 竞赛结束时间
     */
    private LocalDateTime endTime;

    /**
     * 竞赛状态  0:未发布  1:发布
     */
    private Integer status;

    /**
     * 是否删除 0:未删除  1:已删除
     */
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}